﻿using SXFramWork.Core;
using SXFramWork.Model;
using System.Threading.Tasks;

namespace SXFramWork.Repository
{
    public interface ISysAuthInfoRepository:IRepository<SysAuthInfoEntity>
    {
        /// <summary>
        /// 根据用户id获得authinfo
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        Task<SysAuthInfoEntity> GetByUserIdAsync(string userid);
        Task<SysAuthInfoEntity> GetByRefreshToken(string refreshToken);
    }
}
